//
//  Macro.h
//  YunGui
//
//  相关宏定义，url等
//  Created by wmm on 15/11/9.
//  Copyright © 2015年 hanen. All rights reserved.
//

#ifndef Macro_h
#define Macro_h

//#define IsIOS6OrLower ([[[UIDevice currentDevice] systemVersion] floatValue]<= 7.0)
#define IsIOS8Lower ([[[UIDevice currentDevice] systemVersion] floatValue]< 8.0)
//#define IOS7 ([[[UIDevice currentDevice] systemVersion] floatValue] == 7.0)
//获得当前屏幕宽高点数（非像素）
#define kScreenHeight [UIScreen mainScreen].bounds.size.height
#define kScreenWidth  [UIScreen mainScreen].bounds.size.width

//const CGFloat TableCellHeight = 95.0f;
#define TableCellHeight 95.0f

//颜色:UIColorFromRGB(0xf1f1f1)
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define BackPurColor [UIColor colorWithRed:24.0f / 255.0f green:23.0f / 255.0f blue:31.0f / 255.0f alpha:1]
#define YGJsonParserWithData(data) [NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingMutableContainers error:nil]
//黄色
#define YELLOWCOLOR UIColorFromRGB(0xfdc500)

#define YELLOWBTNCOLOR UIColorFromRGB(0xff7703)

//灰色分割线
#define GRAYLINECOLOR UIColorFromRGB(0xe6e7eb)
//textField placeholder
#define PLACECOLOR UIColorFromRGB(0xa1a2a6)

//table

//左边线
#define LEFTLINECOLOR UIColorFromRGB(0xe6e7eb)
//偏黑色字体
#define BLACKCOLOR UIColorFromRGB(0x4a4947)
//灰色字体
#define GRAYCOLOR UIColorFromRGB(0xa3aab4)
//灰色字体
#define GRAYCOLOR2 UIColorFromRGB(0xa3aab2)
//灰色字体
#define DARKGRAYLINECOLOR UIColorFromRGB(0x878787)

//小区的页面字体
#define BLACKTITLECOLOR UIColorFromRGB(0x636267)
#define SUBTITLECOLOR UIColorFromRGB(0xa1a2a7)

//蓝色
//#define BlueColor  [UIColor colorWithRed:18.0f / 255.0f green:57.0f/ 255.0f blue:136.0f / 255.0f alpha:1]
#define BlueColor UIColorFromRGB(0x144d9a)

//灰色背景
#define GrayBackColor UIColorFromRGB(0xf8f8fa)

//灰色celll分割
#define GrayLineColor [UIColor colorWithRed:222.0f / 255.0f green:224.0f/ 255.0f blue:229.0f / 255.0f alpha:1]
//cell竖直线条
#define GrayVerLineColor [UIColor colorWithRed:224.0f / 255.0f green:225.0f/ 255.0f blue:230.0f / 255.0f alpha:1]
//创建页面的填写字体颜色
#define CreatFontColor UIColorFromRGB(0x626166)
#define GreenBackColor [UIColor colorWithRed:22.0f / 255.0f green:166.0f/ 255.0f blue:36.0f / 255.0f alpha:1]
#define HEAD_URL @"http://test.yun-gui.com/app"
//#define HEAD_URL @"http://wq.yun-gui.com/app"

//http://test.yun-gui.com/app?app_key=yeguan&timestamp=2015-11-24%2019:10:00&sign=D4ECE7A93EA8FAD3F407BEDC451791CF&method=app.user.login&name=zhaoy&password=111111

//登录。
//#define LAND_URL @""HEAD_URL"salesLogin"
//#define LAND_URL @""HEAD_URL"permissionControllerForMobile.do?method=login"
#define TOKEN [[NSUserDefaults standardUserDefaults] objectForKey:@"userToken"]

#define IOS7  [[[UIDevice currentDevice] systemVersion] floatValue] == 7

#define CHOOSE_YEAR_COUNT 20 //可选时间年份个数
#define CHOOSE_DAY_COUNT  31 //可选天数
#endif
